<?php
	namespace AppBundle\Form\Type;

	use Symfony\Component\Form\AbstractType;
	use Symfony\Component\Form\FormBuilderInterface;
	use Symfony\Component\OptionsResolver\OptionsResolver;
	use Symfony\Component\Form\Extension\Core\Type\CollectionType;
	use Symfony\Component\Form\Exception\Core\Type\SubmitType;
	use AppBundle\Entity\Student;
	use AppBundle\Entity\Major;
	use AppBundle\Form\Type\MajorType;
	use Symfony\Component\Form\FormEvent;
	use Symfony\Component\Form\FormEvents;


	class MajorType extends AbstractType{
		public function buildForm(FormBuilderInterface $builder, array $options){
			$builder->add('name');
		}

		public function configureOptions(OptionsResolver $resolver){
			$resolver->setDefaults(array(
				'data_class' => 'AppBundle\Entity\Major',
			));
		}
	}